package com.bitin.adorn.common.annotation;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

/**
 * 日志模块枚举
 *
 * @author Mr.Lu
 * @since 2024/12/25 11:41
 */
@Schema(enumAsRef = true)
@Getter
public enum LogModule {
    EXCEPTION("异常"),
    LOGIN("登录"),
    USER("用户"),
    DEPT("部门"),
    ROLE("角色"),
    MENU("菜单"),
    DICT("字典"),
    SETTING("系统配置"),
    OTHER("其他")
    ;

    @JsonValue
    private final String name;

    LogModule(String name) {
        this.name = name;
    }
}
